package Text_44;

import java.util.Scanner;

public class Code {

	public static void main(String[] args) {
		// pow(x,n);
        long l1 = System.currentTimeMillis();
        Scanner sc = new Scanner(System.in);
       double num1 = sc.nextDouble();
        int num2 = sc.nextInt();
        int num22 = num2;
        double sum = 1;
        /*System.out.println(Math.pow(num1,num2));
        */
       while(num2!=0){
           if(num2>0){
               sum *= num1;//sum = sum*num1
               num2--;
           }else if(num2<0){
               sum *= num1;//sum = sum*num1
               num2++;
           }
       }
        if(num22<0){
            System.out.println((1/sum));
        }else{
            System.out.println(sum);
        }
        long l2 = System.currentTimeMillis();
        System.out.println(l2-l1);

	}

}
